package com.ruoyi.st.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 售票信息 (st_ticket_info)对象 st_ticket_info
 * 
 * @author ruoyi
 * @date 2024-11-06
 */
public class StTicketInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键，唯一标识售票信息 */
    private Long id;

    /** 外键，关联演出详情表的id */
    @Excel(name = "外键，关联演出详情表的id")
    private Long performanceId;

    /** 日期数组，存储多个日期 */
    @Excel(name = "日期数组，存储多个日期")
    private String dates;

    public List<StTicketDate> getList() {
        return list;
    }

    public void setList(List<StTicketDate> list) {
        this.list = list;
    }

    private List<StTicketDate> list;

    /** 票面价格数组，存储每个日期的票面价格 */
    @Excel(name = "票面价格数组，存储每个日期的票面价格")
    private String ticketPrices;

    /** 限购票数 */
    @Excel(name = "限购票数")
    private Long limitTickets;

    /** 配送方式 */
    @Excel(name = "配送方式")
    private String deliveryMethod;

    /** 剩余票数 */
    @Excel(name = "剩余票数")
    private Long remainingTickets;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createdBy;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPerformanceId(Long performanceId) 
    {
        this.performanceId = performanceId;
    }

    public Long getPerformanceId() 
    {
        return performanceId;
    }
    public void setDates(String dates) 
    {
        this.dates = dates;
    }

    public String getDates() 
    {
        return dates;
    }
    public void setTicketPrices(String ticketPrices) 
    {
        this.ticketPrices = ticketPrices;
    }

    public String getTicketPrices() 
    {
        return ticketPrices;
    }
    public void setLimitTickets(Long limitTickets) 
    {
        this.limitTickets = limitTickets;
    }

    public Long getLimitTickets() 
    {
        return limitTickets;
    }
    public void setDeliveryMethod(String deliveryMethod) 
    {
        this.deliveryMethod = deliveryMethod;
    }

    public String getDeliveryMethod() 
    {
        return deliveryMethod;
    }
    public void setRemainingTickets(Long remainingTickets) 
    {
        this.remainingTickets = remainingTickets;
    }

    public Long getRemainingTickets() 
    {
        return remainingTickets;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("performanceId", getPerformanceId())
            .append("dates", getDates())
            .append("ticketPrices", getTicketPrices())
            .append("limitTickets", getLimitTickets())
            .append("deliveryMethod", getDeliveryMethod())
            .append("remainingTickets", getRemainingTickets())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("createdBy", getCreatedBy())
            .toString();
    }
}
